﻿using BackData;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace Server.API.Application.Command.Kill
{
    public class UpdateKillCommand:IRequest<APIResult<int>>
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 均重
        /// </summary>
        public decimal Weight { get; set; }

        /// <summary>
        /// 到场时间
        /// </summary>
        public DateTime Arrivetime { get; set; }

        /// <summary>
        /// 屠宰时间
        /// </summary>
        public DateTime Killtime { get; set; }

        /// <summary>
        /// 相关资质((图片路径)
        /// </summary>
        public string Check { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [StringLength(20)]
        public string Companyname { get; set; }

        /// <summary>
        /// 成立时间
        /// </summary>
        public DateTime Borntime { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [StringLength(20)]
        public string Arrive { get; set; }

        /// <summary>
        /// 介绍
        /// </summary>
        [MaxLength(400)]
        public string Introduction { get; set; }

        /// <summary>
        /// 企业照片(图片路径)
        /// </summary>      
        public string Companyphoto { get; set; }
    }
}
